# @Author: 唐奇才
# @Time: 2021/5/4 15:25
# @File: myJsonUtil.py
# @Software: PyCharm
import json


def getJsonData(path):
    # 后面再优化路径判断问题
    with open(path, "r", encoding="utf-8") as f:
        jd = json.load(f)
    return jd

def saveJsonData(path, jsonData):
    with open(path, "w", encoding="utf-8") as f:
        #         有数据的内容             写入的文件
        json.dump(jsonData, f, ensure_ascii=False)


def main():
    pass


if __name__ == '__main__':
    main()